<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Umobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-umobile" disabled class="form-control" name="row[umobile]" type="text" value="{$row.umobile|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select disabled  id="c-type" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Top_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select disabled id="c-top_type" class="form-control selectpicker" name="row[top_type]">
                {foreach name="topTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.top_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Top_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-top_title" disabled class="form-control" name="row[top_title]" type="text" value="{$row.top_title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ic_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select disabled  id="c-ic_type" class="form-control selectpicker" name="row[ic_type]">
                {foreach name="icTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.ic_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <?php if($row['ic_type'] == 0){ ?>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('邮箱')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-top_title" disabled class="form-control" name="row[ems]" type="text" value="{$row.ems|htmlentities}">
        </div>
    </div>
    <?php }else{ ?>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('收货地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-top_title" disabled class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
        </div>
    </div>
     <?php } ?>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money" disabled class="form-control" step="0.01" name="row[money]" type="number" value="{$row.money|htmlentities}">
        </div>
    </div>


    <?php if($row["status"] == 0 || $row["status"] == 3){ ?>
    
          <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('发票')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-files" class="form-control" size="50" name="row[files]" type="text" value="{$row.files|htmlentities}">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-files" class="btn btn-danger faupload" data-input-id="c-files" data-multiple="true" data-preview-id="p-files"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-files" class="btn btn-primary fachoose" data-input-id="c-files" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-files"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-files"></ul>
            </div>
        </div>
        
          <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('发票图片【前端预览】')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-image"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-image"></ul>
            </div>
        </div>
    
    
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
            <div class="col-xs-12 col-sm-8">
                
                <div class="radio">
             
                {foreach name="statusList"   item="vo"}
                
                <?php
                  
                     if($row["status"]==0 && ($key==0  || $key>2)){  continue; } 
                     if($row["status"]==3 && $key<=3){  continue; } 
                ?>
                
                
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
                {/foreach}
                </div>
          
    
            </div>
        </div>
        
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('开票失败原因')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-top_title"  class="form-control" name="row[cl_cnt]" type="text" value="{$row.cl_cnt|htmlentities}">
            </div>
         </div>
    <?php }else{ ?>
    
    
     <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('发票')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-files" class="form-control" size="50" name="row[files]" type="text" value="{$row.files|htmlentities}">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" disabled  id="faupload-files" class="btn btn-danger faupload" data-input-id="c-files" data-multiple="true" data-preview-id="p-files"><i class="fa fa-upload" disabled></i> {:__('Upload')}</button></span>
                        <span><button type="button" disabled id="fachoose-files" class="btn btn-primary fachoose" data-input-id="c-files" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-files"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-files"></ul>
            </div>
        </div>
        
            
          <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('发票图片【前端预览】')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
                    <div class="input-group-addon no-border no-padding">
                        <span><button disabled type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button disabled type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-image"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-image"></ul>
            </div>
        </div>
    
        <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
                <div class="col-xs-12 col-sm-8">
                    
                    <div class="radio">
               
                    <?php 
                        
                    echo  $statusList[$row["status"]];
                    ?>
                    </div>
        
                </div>
            </div>
            
                <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Update_time')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input disabled id="c-update_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" type="text" value="{:$row.update_time?datetime($row.update_time):''}">
                </div>
            </div>
            
            
          <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('开票失败原因')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-top_title"  disabled class="form-control" name="row[cl_cnt]" type="text" value="{$row.cl_cnt|htmlentities}">
            </div>
         </div>
    <?php } ?>
    <?php if($row["status"] > 2 ){ ?>
         <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('退票原因')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-top_title" disabled class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
        </div>
        
         <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('退票原因描述')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-top_title" disabled class="form-control" name="row[desc]" type="text" value="{$row.desc|htmlentities}">
            </div>
         </div>
    <?php } ?>
    

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
